package HLLibClasses;

import HLCode.HLClassManager;
import HLCode.HLLibClass;
import HLCode.HLObject;
import HLLib.base.HLGraphics;
import HLLib.ui.HLUIFrame;

public class HLClassUIFrame extends HLLibClass {
    public HLClassUIFrame(HLClassManager owner) {
        super(owner);
    }

    public HLObject NewObject() {
        return new HLUIFrame();
    }

    public void Execute(HLObject self, int index, HLObject args, HLObject resultOwnerObject, int resultIndex) {
        switch (index) {
        case 0: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).GetType();
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLUIFrame) self).GetType());
            }
            break;
        }
        case 1: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).GetWorkingButton();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUIFrame) self).GetWorkingButton());
            }
            break;
        }
        case 2: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).HasWorkingButton();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUIFrame) self).HasWorkingButton());
            }
            break;
        }
        case 3: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).GetFocusButton();
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUIFrame) self).GetFocusButton());
            }
            break;
        }
        case 4: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).HasFocusButton();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUIFrame) self).HasFocusButton());
            }
            break;
        }
        case 5: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).ClearFocusButton();
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUIFrame) self).ClearFocusButton());
            }
            break;
        }
        case 6: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).SelecteFirstButton(args.GetBoolean(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUIFrame) self).SelecteFirstButton(args.GetBoolean(0)));
            }
            break;
        }
        case 7: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).SelecteButton(args.GetInt(0));
            } else {
                resultOwnerObject.SetBoolean(resultIndex, ((HLUIFrame) self).SelecteButton(args.GetInt(0)));
            }
            break;
        }
        case 8: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).CurDownControlID();
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLUIFrame) self).CurDownControlID());
            }
            break;
        }
        case 9: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).Logic(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLUIFrame) self).Logic(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3)));
            }
            break;
        }
        case 10: {
            ((HLUIFrame) self).RenderEX((HLGraphics)args.GetObject(0), args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4));
            break;
        }
        case 11: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).GetItem(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUIFrame) self).GetItem(args.GetInt(0)));
            }
            break;
        }
        case 12: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).GetArea(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUIFrame) self).GetArea(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4)));
            }
            break;
        }
        case 13: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).FindControl(args.GetInt(0));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUIFrame) self).FindControl(args.GetInt(0)));
            }
            break;
        }
        case 14: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).FindControlArea(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4));
            } else {
                resultOwnerObject.SetObject(resultIndex, ((HLUIFrame) self).FindControlArea(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4)));
            }
            break;
        }
        case 15: {
            if (resultOwnerObject == null) {
                ((HLUIFrame) self).LogicWithClip(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4), args.GetInt(5), args.GetInt(6), args.GetInt(7));
            } else {
                resultOwnerObject.SetInt(resultIndex, ((HLUIFrame) self).LogicWithClip(args.GetInt(0), args.GetInt(1), args.GetInt(2), args.GetInt(3), args.GetInt(4), args.GetInt(5), args.GetInt(6), args.GetInt(7)));
            }
            break;
        }
        }
    }
}
